package com.gitee.wsl.common.chart.sample.funnel.model

/**
 * @ClassName FunnelData
 * @Description 漏斗图数据类
 * @author XiongChuanLiang<br></br>(xcl_168@aliyun.com)
 */
class FunnelData(
    /**
     * 设置标签
     */
    var label: String = "",
    /**
     * 设置数据源
     */
    /**
     * 返回数据集合序列
     */
    //private String mKey;
    var data: Float = 0f,

    /**
     * 设置颜色
     */
    var color: Int = 0,

    //透明度
    var alpha: Int = -1
) : Comparable<FunnelData> {

    override operator fun compareTo(arg0: FunnelData): Int {
        val a = data
        val b = arg0.data
        return a.compareTo(b)
    }
}
